<template>
  <div >
    <div v-for="shows in show" :key="shows.id">
  <el-descriptions class="margin-top" title="体检报告" :column="5" direction="vertical">
  <el-descriptions-item label="姓名">{{name}}</el-descriptions-item>
  <el-descriptions-item label="性别" >{{shows.sex === 1 ? '男' : '女'}}</el-descriptions-item>
  <el-descriptions-item label="档案号">{{shows.filenumber}}</el-descriptions-item>
  <el-descriptions-item label="体检套餐" :span="2">{{shows.setmeal.name  }}</el-descriptions-item>
  <el-descriptions-item label="体检日期">{{ shows.memberexamination.examdate }}</el-descriptions-item>
</el-descriptions>
</div>
</div>
</template>

<script>
export default {
 data () {
  return {
    show:"",
    name:this.$store.state.name.name,

  }
 },
 methods: {
  repot(){
    this.axios
        .get("/rear/show", {
          params: { memberid: this.$store.state.name.id},
        })
        .then(res => {
                  this.show = res.data;
        });
  },

 },
 created(){
    this.repot();

  }
}
</script>

<style scoped>

</style>